package playground;

public class ListNode {
    private int val;
    //private String name;

    public ListNode next;

    public ListNode() {
        val = 0;
        next = null;
    }

    public ListNode(int v) {
        val = v;
        next = null;
    }

    public ListNode(int v, ListNode n) {
        val = v;
        next = n;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int v) {
        val=v;
    }
}
